package com.yicong.ants.bean.find;

/**
 * @author cchao
 * @version 2019-05-27.
 */
public class BannerBean {
    /**
     * show_position : 2
     * name : 2
     * url :
     * img_url : img2.jpg
     * type : 1
     */

    private String show_position;
    private String name;
    private String url;
    private int ad_id;
    private String img_url;
    private String type;

    public BannerBean() {
    }

    public String getShow_position() {
        return this.show_position;
    }

    public String getName() {
        return this.name;
    }

    public String getUrl() {
        return this.url;
    }

    public int getAd_id() {
        return this.ad_id;
    }

    public String getImg_url() {
        return this.img_url;
    }

    public String getType() {
        return this.type;
    }

    public void setShow_position(String show_position) {
        this.show_position = show_position;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setAd_id(int ad_id) {
        this.ad_id = ad_id;
    }

    public void setImg_url(String img_url) {
        this.img_url = img_url;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof BannerBean)) return false;
        final BannerBean other = (BannerBean) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$show_position = this.getShow_position();
        final Object other$show_position = other.getShow_position();
        if (this$show_position == null ? other$show_position != null : !this$show_position.equals(other$show_position))
            return false;
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        if (this$url == null ? other$url != null : !this$url.equals(other$url)) return false;
        if (this.getAd_id() != other.getAd_id()) return false;
        final Object this$img_url = this.getImg_url();
        final Object other$img_url = other.getImg_url();
        if (this$img_url == null ? other$img_url != null : !this$img_url.equals(other$img_url))
            return false;
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof BannerBean;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $show_position = this.getShow_position();
        result = result * PRIME + ($show_position == null ? 43 : $show_position.hashCode());
        final Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        final Object $url = this.getUrl();
        result = result * PRIME + ($url == null ? 43 : $url.hashCode());
        result = result * PRIME + this.getAd_id();
        final Object $img_url = this.getImg_url();
        result = result * PRIME + ($img_url == null ? 43 : $img_url.hashCode());
        final Object $type = this.getType();
        result = result * PRIME + ($type == null ? 43 : $type.hashCode());
        return result;
    }

    public String toString() {
        return "BannerBean(show_position=" + this.getShow_position() + ", name=" + this.getName() + ", url=" + this.getUrl() + ", ad_id=" + this.getAd_id() + ", img_url=" + this.getImg_url() + ", type=" + this.getType() + ")";
    }
}
